#ifndef CONTRACTINFODIALOG_H
#define CONTRACTINFODIALOG_H

#include <QDialog>
#include "contractcenter.h"
#include "childwindowbase.h"

namespace Ui {
    class ContractInfoDialog;
}

class ContractInfoDialog : public ChildWindowBase {
    Q_OBJECT
public:
	ContractInfoDialog(ChildWindowBase *parent = 0);
	ContractInfoDialog(const ContractInfo& contractInfo, ChildWindowBase *parent = 0);
    ~ContractInfoDialog();

	ContractInfo getContractInfo() const
	{
		return m_ContractInfo;
	}
private slots:
	void onAccept();
private:
	void setupWidgets();
protected:
    void changeEvent(QEvent *e);

private:
    Ui::ContractInfoDialog *ui;
	ContractInfo m_ContractInfo;
};

#endif // CONTRACTINFODIALOG_H
